.custom-icon {
  background-color: var(--bg-card);
  border-radius: 6px;
  padding: 10px;

  .custom-input {
    width: 420px;
    --el-input-bg-color: var(--add-input);
    --el-input-border-radius: 8px;
    --el-input-border-color: transparent;
    --el-input-focus-border-color: var(--el-border-color-hover);

    .el-input-group__append {
    //   background-color: transparent;
    }
  }

  .font-part {
    justify-content: space-around;
    list-style: none;
    align-items: center;
    width: 420px;

    .font-item {
      height: 18px;
      width: 18px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 7px;
      cursor: pointer;
      position: relative;
      font-size: 18px;
      transition: all 0.3s;

      &:hover{
        box-shadow: 0 0.5rem 1rem rgba($color: #000000, $alpha: .5);
      }

      .icon {
        position: absolute;
        bottom: 0;
        left: 0;
      }
    }
  }

  .icon-preview {
    margin-right: 8px;
    text-align: center;

    &:hover {
      .icon-part {
        outline: white solid 4px;
        box-shadow: 0 0 12px 3px rgba(var(--alpha-color), 0.2);
      }
    }

    &.active {
      .icon-part {
        outline: white solid 4px;
        box-shadow: 0 0 12px 3px rgba(var(--alpha-color), 0.2);
        pointer-events: none;
        position: relative;
        &::after {
          content: "✔";
          position: absolute;
          font-weight: 700;
          color: var(--primary-color);
          right: -2px;
          bottom: -1px;
          width: 18px;
          height: 18px;
          z-index: 1;
          background: rgb(255, 255, 255);
          border-radius: 14px 0px 15px;
          line-height: 1;
          font-size: 18px;
        }
      }
    }

    .icon-part {
      width: 60px;
      height: 60px;
      border-radius: 16px;
      color: var(--icon-title);
      background-color: rgba(var(--alpha-color), 0.05);
      text-align: center;
      line-height: 60px;
      font-size: 22px;
      border: 1px solid rgba(var(--alpha-color), 0.1);
      cursor: pointer;
      outline: transparent solid 4px;
      transition: all 0.2s;
    }
  }
}
